home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Directorty Opus 5 - Magellan
/
Opus 5 - Magellan.iso
/
Extras
/
MuFS_do_logout
/
DO_LOGOUT.txt
< prev
next >
Wrap
Text File
|
1996-02-04
|
3KB
|
67 lines
DO_LOGOUT shell scriptfile for using multiuser correctly with DOpus5
by: Jason Straight (jrstrai@freeway.net)
IRC: codesmith
Introduction:
Have you tried to use multiuser with Dopus5 and notice that while it
will show a user as being logged in, multiuser will not let them access
files thru Dopus that they should have access too?
ie. you login as root, and still cannot access your entire system thru
dopus?
the reason that is is that Dopus has task called DO_LAUNCHER that is
separated from Dopus, so if you call LOGOUT from Dopus you are only logging
in to that task, and not the entire Dopus GUI!
ie. you have a user menu selection for logout gui. it will log out the
task that called logout - which is DO_LOGOUT, and dopus will still be
whoever was logged in before dopus was loaded.
The fix for this is to call logout for both DO_LAUNCHER, and dopus itself.
This is a simple script file to take the hassle out for you.
INSTALLATION:
The best way to do this is to create a user 'guest' with no passwd.
you then call 'login guest' in your startup sequence before the loadwb
command.
(I suspect this will only work for those who use Dopus as a WB replacement)
after the loadWB (the DO_LAUNCHER task will be created) you log guest into
the DO_LAUNCHER task by 'login guest task DO_LAUNCHER'
now user guest will be able to access/launch only files guest has access to
which is basically nothing on my system.
best way to do this is:
1) copy DO_LOGOUT to S:
2) mprotect s:DO_LOGOUT srwed group r other r
3) put 'login >nil: guest GLOBAL' before loadwb
4) put 'login >nil: guest task DO_LAUNCHER GLOBAL' after loadwb
5) add a user menu selection 'LOGOUT' to execute s:DO_LOGOUT
6) edit do_logout file. Change C2: to your mufs commands path.
done.
you may substitute guest for any user that you want logged in, but
remember that if that user has a password you will be asked for it twice,
unless it's root.
if that user has a passwd add the option GIU to both logins aswell, or it
will cause your shell/window to be opened on every startup.
now when you reboot, DOPUS will correctly work with mufs!
when you want to login another user to Dopus just choose logout from menu.
NOTE: if you use AMI-TCP and it's in your path before your multiuser
commands it will call amitcp's login instead, so specify a path in your
startup, scriptfile to your mufs commands. ie. 'c2:login' to make sure you
call the mufs login command.